package testing._main;

public class PrintCirclePoints
{
	public static void main(String[] args)
	{
		int radius = 100;
		int x = 20;
		int y = 20;

		System.out.println("radius = " + radius);
		System.out.println("x = " + x);
		System.out.println("y = " + y);
		
		for(int ang = 0; ang < 360; ang++)
		{
			// Get X
			int px = (int)(Math.cos(Math.PI * ang / 360.0) * radius) + x;
			
			// Get Y
			int py = (int)(Math.sin(Math.PI * ang / 360.0) * radius) + y;
			
			System.out.println("angle = " + ang + "; px = " + px + "; py = " + py);
		}
	}
}
